<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        <html><head>
        <link rel="stylesheet" type="text/css" href="apidocs.css"/>
        <title>API docs for &ldquo;sympy.integrals.trigonometry&rdquo;</title>
        </head>
        <body><h1 class="module">Module s.i.trigonometry</h1><span id="part">Part of <a href="sympy.integrals.html">sympy.integrals</a></span><div class="toplevel"><div class="undocumented">Undocumented</div></div><table class="children"><tr class="function"><td>Function</td><td><a href="#sympy.integrals.trigonometry._pat_sincos">_pat_sincos</a></td><td><span class="undocumented">Undocumented</span></td></tr><tr class="function"><td>Function</td><td><a href="#sympy.integrals.trigonometry.trigintegrate">trigintegrate</a></td><td><div><p>Integrate f = Mul(trig) over x</p>
</div></td></tr><tr class="class"><td>Class</td><td><a href="sympy.integrals.trigonometry.Sin_2k_integrate.html">Sin_2k_integrate</a></td><td><div><p>efficient integrate(sin(x)**2k, x)</p>
</div></td></tr><tr class="class"><td>Class</td><td><a href="sympy.integrals.trigonometry.Cos_2k_integrate.html">Cos_2k_integrate</a></td><td><div><p>efficient integrate(cos(x)**2k, x)</p>
</div></td></tr></table>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.integrals.trigonometry._pat_sincos">_pat_sincos(x):</a></div>
            <div class="functionBody"><div class="undocumented">Undocumented</div></div>
            </div>
            <div class="function">
            <div class="functionHeader">def <a name="sympy.integrals.trigonometry.trigintegrate">trigintegrate(f, x):</a></div>
            <div class="functionBody"><div><p>Integrate f = Mul(trig) over x</p>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">from</span> sympy <span class="py-keyword">import</span> Symbol, sin, cos
<span class="py-prompt">&gt;&gt;&gt; </span><span class="py-keyword">from</span> sympy.integrals.trigonometry <span class="py-keyword">import</span> trigintegrate
<span class="py-prompt">&gt;&gt;&gt; </span>x = Symbol(<span class="py-string">'x'</span>)</pre>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>trigintegrate(sin(x)*cos(x), x)
<span class="py-output">(1/2)*sin(x)**2</span></pre>
<pre class="py-doctest">
<span class="py-prompt">&gt;&gt;&gt; </span>trigintegrate(sin(x)**2, x)
<span class="py-output">(1/2)*x - 1/2*cos(x)*sin(x)</span></pre>
<p>http://en.wikibooks.org/wiki/Calculus/Further_integration_techniques</p>
</div></div>
            </div></body>
        